import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictIntIntHelper } from "./DictIntIntHelper";
type int = number;
//class SNewDayRechargeInfo
    
    export  class SNewDayRechargeInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SNewDayRechargeInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.activeType);
            arg1.writeInt(this.todayNum);
            DictIntIntHelper.write(arg1, this.giftCode);
            DictIntIntHelper.write(arg1, this.value);
            DictIntIntHelper.write(arg1, this.status);
            arg1.writeBool(this.update);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.activeType = arg1.readInt();
            this.todayNum = arg1.readInt();
            this.giftCode = DictIntIntHelper.read(arg1);
            this.value = DictIntIntHelper.read(arg1);
            this.status = DictIntIntHelper.read(arg1);
            this.update = arg1.readBool();
            return;
        }

        public /* const */_type: int=2038;

        public /* var */activeType: int;

        public /* var */todayNum: int;

        public /* var */giftCode: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */value: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */status: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */update: Boolean;

        public static /* var */_regist: SNewDayRechargeInfo;
    }

            SNewDayRechargeInfo._regist = new SNewDayRechargeInfo(true);
        